package com.gxa.saas.service;

import com.gxa.saas.pojo.Warehouse;

import java.util.List;

/**
 * @Author: yx
 * @Date: 2022/6/7 16:14
 */

public interface WarehouseService {
    List<Warehouse> selectAll();

    List<Warehouse> selectByPage(Integer offset);
    void insert(Warehouse warehouse);
    void update(Warehouse warehouse);
    void delete(Integer id);

    /**
     * 根据仓库名字,以及负责人迷糊查询
     * @param name
     * @param principal
     * @return
     */
    List<Warehouse> selectLikeName(String name,String principal);

    void updateIsUsed(Integer id,Boolean isUsed);

}
